#include <iostream>
using std::string;
using std::endl;
using std::cout;

string make_plural(size_t ctr, const string &word, const string &ending = "s") 
{
	return (ctr == 1) ? word : word + ending;
}

int main()
{
	cout << make_plural(0, "file") << endl;
	cout << make_plural(0, "failure") << endl;
	cout << make_plural(1, "success") << endl;
	return 0;
}
